package com.qf.cx.simplenms.report.model;

import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Element {
	private TagInfo tagInfo;
	private Set<Integer> discoveryTypeSet = new HashSet<>();
	private long discoveryTime;
	private Device device;
	private Set<String> deviceGroupSet = Collections.emptySet();

	private List<Statistic> statistics = Collections.emptyList();

	public TagInfo getTagInfo() {
		return tagInfo;
	}

	public void setTagInfo(TagInfo tagInfo) {
		this.tagInfo = tagInfo;
	}

	public Set<Integer> getDiscoveryTypeSet() {
		return discoveryTypeSet;
	}

	public void addDiscoveryType(int type) {
		discoveryTypeSet.add(type);
	}

	public long getDiscoveryTime() {
		return discoveryTime;
	}

	public void setDiscoveryTime(long discoveryTime) {
		this.discoveryTime = discoveryTime;
	}

	public Device getDevice() {
		return device;
	}

	public void setDevice(Device device) {
		this.device = device;
	}

	public Set<String> getDeviceGroupSet() {
		return deviceGroupSet;
	}

	public void setDeviceGroupSet(Set<String> deviceGroupSet) {
		this.deviceGroupSet = deviceGroupSet;
	}

	public void setDiscoveryTypeSet(Set<Integer> discoveryTypeSet) {
		this.discoveryTypeSet = discoveryTypeSet;
	}

	public List<Statistic> getStatistics() {
		return statistics;
	}

	public void setStatistics(List<Statistic> statistics) {
		this.statistics = statistics;
	}

	@Override
	public String toString() {
		return "Element [tagInfo=" + tagInfo + ", discoveryTypeSet=" + discoveryTypeSet + ", discoveryTime=" + discoveryTime + ", device=" + device
		        + ", deviceGroupSet=" + deviceGroupSet + ", statistics=" + statistics + "]";
	}

}
